From aeeb19670baff88a36845cc5537b2101c0b8e0b5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 2 Aug 2004 04:22:37 +0000 Subject: [PATCH] Add the same warning that the blink_cb() in GtkEntry already has. Mon Aug 2 00:21:26 2004 Matthias Clasen * gtk/gtktextview.c (blink_cb): Add the same warning that the blink_cb() in GtkEntry already has. (#148733) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktextview.c | 7 +++++++ 5 files changed, 27 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2b211eda94..6b319cad12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 2 00:21:26 2004 Matthias Clasen + + * gtk/gtktextview.c (blink_cb): Add the same warning + that the blink_cb() in GtkEntry already has. (#148733) + Mon Aug 2 00:12:16 2004 Matthias Clasen * gtk/gtkentry.c (gtk_entry_class_init): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 2b211eda94..6b319cad12 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Mon Aug 2 00:21:26 2004 Matthias Clasen + + * gtk/gtktextview.c (blink_cb): Add the same warning + that the blink_cb() in GtkEntry already has. (#148733) + Mon Aug 2 00:12:16 2004 Matthias Clasen * gtk/gtkentry.c (gtk_entry_class_init): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 2b211eda94..6b319cad12 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Mon Aug 2 00:21:26 2004 Matthias Clasen + + * gtk/gtktextview.c (blink_cb): Add the same warning + that the blink_cb() in GtkEntry already has. (#148733) + Mon Aug 2 00:12:16 2004 Matthias Clasen * gtk/gtkentry.c (gtk_entry_class_init): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 2b211eda94..6b319cad12 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Mon Aug 2 00:21:26 2004 Matthias Clasen + + * gtk/gtktextview.c (blink_cb): Add the same warning + that the blink_cb() in GtkEntry already has. (#148733) + Mon Aug 2 00:12:16 2004 Matthias Clasen * gtk/gtkentry.c (gtk_entry_class_init): diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index f3a7e344c9..4728c33259 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4427,6 +4427,13 @@ blink_cb (gpointer data) text_view = GTK_TEXT_VIEW (data); + if (!GTK_WIDGET_HAS_FOCUS (text_view)) + { + g_warning ("GtkTextView - did not receive focus-out-event. If you\n" + "connect a handler to this signal, it must return\n" + "FALSE so the entry gets the event as well"); + } + g_assert (text_view->layout); g_assert (GTK_WIDGET_HAS_FOCUS (text_view)); g_assert (text_view->cursor_visible); -- 2.30.2